package it.win4buy.events
{
    /**
     *
     *	autore:
     *  pierangelo.mancusi@gmail.com
     *
     */

    import flash.events.Event;

    import mx.collections.ArrayCollection;

    public class GetPlaceHolderEvent extends Event
    {

        public static const RESULT:String="GetPlaceHolderEvent.RESULT";

        public static const FAULT:String="GetPlaceHolderEvent.FAULT";


        //-------------------------------------------
        //
        // Private Properties
        //
        //-------------------------------------------

        /**
         * ArrayCollection returned by The PlaceHolderService Call.
         * @see GetPlaceHolderService.as
         */
        private var _placeHolder:ArrayCollection;


        //-------------------------------------------
        //
        // Getters / Setters
        //
        //-------------------------------------------


        public function get placeHolder():ArrayCollection
        {
            return _placeHolder;
        }

        public function set placeHolder(value:ArrayCollection):void
        {
            _placeHolder=value;
        }

        //-------------------------------------------
        //
        // Constructor
        //
        //-------------------------------------------

        public function GetPlaceHolderEvent(type:String, placeHolder:ArrayCollection, bubbles:Boolean=false, cancelable:Boolean=false)
        {
            super(type, bubbles, cancelable);
            this.placeHolder=placeHolder;
        }


        //-------------------------------------------
        //
        // Private Methods
        //
        //-------------------------------------------
        override public function clone():Event
        {

            return new GetPlaceHolderEvent(type, placeHolder, bubbles, cancelable);
        }

    }
}